import type { RolesList } from "./userType";
export interface GetRoleListParams {
  page: number;
  limit: number;
  roleName: string;
}
export interface GetRoleListResponse {
  total: number;
  items: RolesList;
}
// 获取角色权限列表
export interface GetRolePermissionListApiResponse {
  children: PermissionList;
}
export type PermissionList = PermissionItem[];
export interface PermissionItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  pid: string;
  name: string;
  code: string;
  type: 1 | 2;
  level: 1 | 2 | 3 | 4;
  children: PermissionList;
  select: boolean;
}
// "children": [
//   {
//     "id": "1",
//     "gmtCreate": "2019-11-15 17:13:06",
//     "gmtModified": "2020-09-25 13:47:54",
//     "deleted": false,
//     "pid": "0",
//     "name": "全部数据",
//     "code": null,
//     "toCode": null,
//     "type": 1,
//     "status": null,
//     "level": 1,
//     "children":[]
//   ]
